package com.bilifuture.action;

import com.bilifuture.statemachine.action.Action;
import com.bilifuture.statemachine.machine.StateMachineContext;
import com.bilifuture.statemachine.message.Response;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author bilifuture
 * @description:
 * @date 2022-04-02
 */
@Slf4j
@Component("orderSubmitAction")
public class OrderSubmitAction extends Action{
    
    /**
     * 转换执行前
     *
     * @param context 上下文
     * @return {@link Response}
     */
    @Override
    public Response preExecute(StateMachineContext context) {
        log.info("OrderSubmitAction -> preExecute");
        return null;
    }
    
    /**
     * 转换执行
     *
     * @param context 上下文
     * @return {@link Response}
     */
    @Override
    public Response execute(StateMachineContext context) {
        log.info("OrderSubmitAction -> execute");
        return null;
    }
}
